package com.xysq.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.rockcent.action.AppAction;
import com.rockcent.action.impl.AppActionImpl;
import com.xysq.util.PropertiesUtil;

import butterknife.ButterKnife;

/**
 * Created by huangdongkai on 2015/7/22.
 */
public class BaseFragment extends Fragment {
    public AppAction appAction;
    public final int CURRENT_PAGE = 1;
    public final int PAGE_SIZE = 20;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        appAction = AppActionImpl.getInstance(getActivity(), PropertiesUtil.getXyapiAddress(), PropertiesUtil.getQkapiAddress());
    }

    public View inflaterView(LayoutInflater inflater, int resource, ViewGroup container) {
        View view = inflater.inflate(resource, container, false);
        ButterKnife.inject(this, view);
        return view;
    }
}
